namespace :db do
  desc "Raise an error unless the RAILS_ENV is development"
  task :development_environment_only do
    raise "Hey, development only you monkey!" unless Rails.env == 'development'
  end
  desc "Drop, create, migrate then seed the development database"
  task :reset_db => [
  'environment', 
  'db:development_environment_only', 
  'db:drop', 
  'db:create', 
  'db:migrate', 
  'db:fixtures:load'
  ]
end
